<%@ Page Language="c#" CodeBehind="EditCategory.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_Article.UI.BlogCategoryEdit" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" />
        <asp:Panel ID="pnlBlog" runat="server" DefaultButton="btnSave" CssClass="art-Post-inner panelwrapper admin blogcategoryedit">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true"
                UseLowerCaseArtisteerClasses="true" />
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                <fieldset>
                        <legend>
                            <asp:Label id="lblTitle" CssClass="moduletitle" runat="server" />
                        </legend>
                    <div id="divtabs" class="mojo-tabs">
                    <ul>
                        <li class="selected"><asp:Literal ID="litContentTab" runat="server" /></li>
                        <li><asp:Literal ID="litDescriptionTab" runat="server" /></li>
                    </ul>
                    <div id="tabContent">
                        <div class="settingrow">
                            <asp:Label ID="lblError" runat="server" CssClass="txterror"></asp:Label>
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="SiteLabel1" runat="server" ForControl="txtNewCategoryName" CssClass="settinglabel"
                                ConfigKey="NewCategoryLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:TextBox ID="txtNewCategoryName" runat="server" MaxLength="255" CssClass="widetextbox"></asp:TextBox>
                            <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtNewCategoryName"
                                ID="rfvNewCategoryName" ValidationGroup="Category" runat="server" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="SiteLabel2" runat="server" ForControl="txtSortOrder" CssClass="settinglabel"
                                ConfigKey="SortOrderLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:TextBox ID="txtSortOrder" runat="server" MaxLength="50" CssClass="smalltextbox"></asp:TextBox>
                            <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txtSortOrder" ID="rfvSortOrder"
                                ValidationGroup="Category" runat="server" />
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="SiteLabel14" runat="server" ForControl="txtImageUrl" CssClass="settinglabel"
                                ConfigKey="ArticleEditItemImageUrlLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <NeatUpload:InputFile ID="nuImageUrl" runat="server" />
                               <NeatUpload:ProgressBar ID="progressBar" runat="server">
                                </NeatUpload:ProgressBar>
                            <asp:Label ID="lblImageUrlError" runat="server" />
                        </div>
                        <div class="settingrow">
                            <asp:UpdatePanel ID="updImgDel" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div runat="server" id="divImage" visible="false">
                                        <mp:SiteLabel ID="lblCurrentImage" runat="server" ForControl="txtImageUrl" CssClass="settinglabel"
                                            ConfigKey="ArticleCurrentImageLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                                        <asp:Image runat="server" ID="imgView" Width="100px" Style="max-height: 60px" />
                                        <asp:ImageButton ID="btnDeleteImg" runat="server" />
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                        <div class="settingrow">
                            <mp:SiteLabel ID="lblCategoryParent" runat="server" ForControl="ddlCatParent" CssClass="settinglabel"
                                ConfigKey="ParentLabel" ResourceFile="ArticleResources"></mp:SiteLabel>
                            <asp:ListBox ID="lbCategoryParent" runat="server" CssClass="listbox" />
                            <asp:ImageButton runat="server" ID="btnView" />
                            <asp:ImageButton runat="server" ID="btnEdit" />
                            <asp:ImageButton runat="server" ID="btnDelete" />
                        </div>
                    </div>
                    <div id="tabDescription">
                        <div class="settingrow">
                            <mpe:EditorControl ID="edDescription" runat="server">
                            </mpe:EditorControl>
                        </div>
                    </div>
                    </div>

                    
                        
                        <div class="settingrow">
                            <portal:mojoButton ID="btnSave" runat="server" ValidationGroup="Category" />
                            <portal:mojoButton ID="btnBack" runat="server" CausesValidation="false" />
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
